package 异常;

public class SecondException {
    public static void main(String[] args) {
        try{
            int x = 100;
            int y = 0;
            System.out.println("x/y="+x/y);
            System.out.println("HELLO WORLD");
            return;
        }catch(ArithmeticException ex){
            System.out.println("数学异常");
        }catch(NullPointerException ex){
            System.out.println("发生了空指针的指示");
        }
        System.out.println("运行结束");
    }
}
